package cn.bitkit.base.annotation;

import cn.bitkit.base.dictionary.BaseDictionary;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 字典标记
 * @author changbo
 */
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface Dictionary {

    /** 字典枚举类  */
    Class<? extends BaseDictionary> value();
    /** 字典描述字段  */
    String nameField() default "";
    /** 字典描述字段自动选择  */
    String nameFieldAuto() default "Desc";

}
